<script>
    let data = [0, 1, 2, 3, 4, 5]
    $: msgs = data.filter(d => {
        return d % 2 === 0
    })

    $: {
        console.log(msgs)
        console.log('msg', msgs)
    }
    $: if(msgs.length >2) {
        console.log(msgs.length)
    }
</script>

<ul class="mui-table-view">
    {#each msgs as msg}
        <li class="mui-table-view-cell" on:click={() => { mui.toast('位置权限获取失败!',{ duration: 1000, type:'div' }) }}>
            <a class="mui-navigate-right">{msg}</a>
        </li>
    {/each}
</ul>

<style lang="scss">
</style>